<div class="shopcate">
    <div class="heading">商品分类</div>
    {kfc:category type=goods}
    <ul id="shopcate">
    {category:loop}
    <li class="m"><a class="mlink" href="[category:url]" target="_self"><em></em>[category:name]</a>
        {kfc:sub1category type=goods parentid=[category:id]}
        <div class="sub1">
        {sub1category:loop}
            <div id="goods_cat_[category:id]">
            <h4><a href="[sub1category:url]" target="_blank">[sub1category:name]</a></h4>
                {kfc:sub2category type=goods parentid=[sub1category:id]}
                <div class="navchild">
                {sub2category:loop}<a href="[sub2category:url]" target="_blank">[sub2category:name]</a>{/sub2category:loop}
                </div>
                {/kfc:sub2category}
            </div>
        {/sub1category:loop}
        </div>
        {/kfc:sub1category}
    </li>
    {/category:loop}
    </ul>
    {/kfc:category}
</div>